package uk.ac.cam.cl.projectcharlie2010.physicalboard;

import javax.swing.JOptionPane;

import ch.nostromo.tiffanys.game.move.Move;

public class FakePopUpPhysicalBoardController implements PhysicalBoardController {

	private PhysicalBoardControllerListener listener;

	public FakePopUpPhysicalBoardController(PhysicalBoardControllerListener listener) {
		this.listener = listener;
	}
	@Override
	public void executePhysicalMove(final Move move, String FEN) {

//		Thread runner = new Thread() {
//			@Override
//			public void run() {
//				
////				int choice = JOptionPane.showConfirmDialog(null, "Press OK when physical move has been completed.",
////		                "Quit", JOptionPane.OK_OPTION, JOptionPane.WARNING_MESSAGE);
//
//				JOptionPane.showMessageDialog(null, "Press OK when physical move has been completed.");
//				
//		        listener.executePhysicalMoveFinished();
//
//			}
//		};
//		runner.start();

		
		JOptionPane.showMessageDialog(null, "Press OK when physical move has been completed.");
		
        listener.executePhysicalMoveFinished();

	}




}
